package mdb;

import java.util.Vector;

public class MdbModel9 {
    private String m1 = "0.98";
    private String m2 = "0.97";
    private String m3 = "0.99";
    private String m4 = "0.95";
    private String m5 = "0.98";
    private String m6 = "0.95";
    private String a1 = "0.95";
    private String a2 = "0.93";
    private String a3 = "0.94";
    private String minDiaSet = "{m1},\n{a1},\n{m5},\n{m2,a2},\n{m2,m3},\n{a2,m3},\n{m6,a2},\n{m6,m2},\n{m6,m3},\n{a3,a2},\n{a3,m2},\n{a3,m3},\n{m4,a2},\n{m4,m2},\n{m4,m3}";
    private Vector tableData;

    public Vector getTableData() {
        if (tableData == null) {
            tableData = new Vector();
        }
        return tableData;
    }
    public void setTableData(Vector tableData) {
        this.tableData = tableData;
    }
    public String getMinDiaSet() {
        return minDiaSet;
    }
    public void setMinDiaSet(String minDiaSet) {
        this.minDiaSet = minDiaSet;
    }
    public String getM1() {
        return m1;
    }
    public void setM1(String m1) {
        this.m1 = m1;
    }
    public String getM2() {
        return m2;
    }
    public void setM2(String m2) {
        this.m2 = m2;
    }
    public String getM3() {
        return m3;
    }
    public void setM3(String m3) {
        this.m3 = m3;
    }
    public String getA1() {
        return a1;
    }
    public void setA1(String a1) {
        this.a1 = a1;
    }
    public String getA2() {
        return a2;
    }
    public void setA2(String a2) {
        this.a2 = a2;
    }
    public String getM4() {
        return m4;
    }
    public void setM4(String m4) {
        this.m4 = m4;
    }
    public String getM5() {
        return m5;
    }
    public void setM5(String m5) {
        this.m5 = m5;
    }
    public String getM6() {
        return m6;
    }
    public void setM6(String m6) {
        this.m6 = m6;
    }
    public String getA3() {
        return a3;
    }
    public void setA3(String a3) {
        this.a3 = a3;
    }
    public String getProbabilityByIndex(int index) {
        switch (index) {
        case 0 : return getM1();
        case 1 : return getM2();
        case 2 : return getM3();
        case 3 : return getM4();
        case 4 : return getM5();
        case 5 : return getM6();
        case 6 : return getA1();
        case 7 : return getA2();
        case 8 : return getA3();
        }
        return "0";
    }
}
